package com.example.asyncwrite.service;

import com.example.asyncwrite.mapper.OrderMapper;
import com.example.asyncwrite.mapper.OrderMapper2;
import com.example.asyncwrite.model.OrderDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MerchantOrderService {

    @Autowired
    private OrderMapper2 orderMapper2;

    public List<OrderDTO> getOrderListByMerchantId(@Param("merchantId") Long merchantId) {
        return orderMapper2.getOrderListByMerchantId(merchantId);
    }

}
